const express = require('express');
const router = express.Router();

// 导入各个路由模块
const dishRouter = require('./dishRouter');
const categoryRouter = require('./categoryRouter');
const tasteRouter = require('./tasteRouter');
const imageRouter = require('./imageRouter');
const authRouter = require('./authRouter'); // 新增

// 注册路由
router.use('/dishes', dishRouter);         // 菜品相关
router.use('/categories', categoryRouter); // 分类相关
router.use('/tastes', tasteRouter);        // 口味相关
router.use('/images', imageRouter);        // 图片上传相关
router.use('/auth', authRouter);           // 用户认证相关

module.exports = router;